package chuangyi.com.org.ViewModel;

import android.content.Context;
import android.databinding.Bindable;

import java.util.Date;

import chuangyi.com.org.DOMIHome.BR;
import chuangyi.com.org.DOMIHome.Utils.WebApi;

/**
 * Created by zxh on 16/12/24.
 */

public class MessageDetailModel extends ObservableWithGoBackHandler {

    private int id;
    private String content;
    private Date msgtime;
    private String title;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Bindable
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        notifyPropertyChanged(BR.content);
    }

    @Bindable
    public Date getMsgtime() {
        return msgtime;
    }

    public void setMsgtime(Date msgtime) {
        this.msgtime = msgtime;
        notifyPropertyChanged(BR.msgtime);
    }

    @Bindable
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        notifyPropertyChanged(BR.title);
    }

    public MessageDetailModel(Context context) {
        super(context);
        super.getHandler().setTitle("消息详情");
    }
}
